<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var k=prompt("请输入一个数字：");
			if(isNaN(k)){
				console.log("您输入的有问题");
			}else{
				var i=parseInt(k);
				console.log("结果是："+i);
			}
		</script>
	</head>
	<body>
		eval();
	</body>
</html>
